<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no" />

<title>支付失败</title>

</head>
<body>
支付失败

<button onclick="sub()">返回</button>

<script>

    //判断是否为ios端访问
    function _IsIOS() {
        if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
            return true;
        } else {
            return false;
        }
    }
    //判断是否为android端访问
    function _IsAndroid() {
        if (/(Android|Adr)/i.test(navigator.userAgent)) {
            return true;
        } else {
            return false;
        }
    }

    function sub(){

        if (_IsIOS()) {
            window.webkit.messageHandlers.jsCallFail.postMessage("");
        } else if (_IsAndroid()) {
            showData.jsCallFail("");
            //或者window.control.method(param);
        }
    }

</script>
</body>
</html>
